from . import std
from .debugger import TypeRegistrator


def register(r: TypeRegistrator):
    r.add_type(
        std.StringView,
    )
    r.add_summary(
        type_name=r'^std::pair<.+>',
        expr='\\{ first=\\{${var.first}\\}; second=\\{${var.second}\\} \\}',
        novalue=True,
        regex=True,
    )
